Accessibility in Xamarin Rotator (SfRotator)

11 Aug 20221 minute to read

The SfRotator control has built-in AutomationId for inner elements. The AutomationId API allows the automation framework to find and interact with the inner elements of the SfRotator control. To keep unique AutomationId, these inner elements’ AutomationIds are updated based on the control’s AutomationId.

For example, if you set SfRotator’s AutomationId as “Book Display Rotator” and you want to select the fifth index, then the automation framework will interact with the Thumbnail as “Book Display Rotator Index 5 of 5”.

The automation framework will interact only to the Dots and Thumbnail NavigationStripMode. You cannot interact with the rotator item when you want to select the index that is not visible in the view.

NOTE

You cannot provide AutomationId when the rotator item is populated with custom template.

AutomationId Image